﻿namespace ExamV5.LineStudyExam
{
    using ExamV5;
    using System;
    using System.Configuration;
    using System.Data;
    using System.Data.SqlClient;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class FrmShowJoinExamRubric : Page
    {
        protected GridView DataGridInfo;
        protected HtmlInputHidden ExamUserCode;
        protected HtmlForm Form1;
        protected HtmlHead Head1;
        private HttpCookie httpCookie_0 = null;
        private HttpCookie httpCookie_1 = null;
        private HttpCookie httpCookie_2 = null;
        private HttpCookie httpCookie_3 = null;
        private HttpCookie httpCookie_4 = null;
        private int int_0 = 0;
        protected Label labCheckRubricInfo;
        protected Label labFen;
        protected Label labPaperFlag;
        protected Label labPerRubricType;
        protected Label labRecored;
        protected Label labRubricListID;
        protected Label labRubricSortID;
        protected Label labTitle;
        private PublicFun publicFun_0 = new PublicFun();
        protected ScriptManager SM;
        private string string_0 = "0";
        private string string_1 = "";
        private string string_2 = "";
        protected HtmlInputHidden txtBSubmit;
        protected HtmlInputHidden txtErrorID;
        protected HtmlInputHidden txtHideComm;
        protected HtmlInputHidden txtHideEnter;
        protected HtmlInputHidden txtHideFocus;
        protected HtmlInputHidden txtRubricSortID;
        protected HtmlInputHidden txtSubPaper;
        protected HtmlInputHidden txtWriteID;
        protected UpdatePanel UPPart;

        private void method_0()
        {
            double num = 0.0;
            num = Convert.ToDouble(this.ViewState["PaperSumFen"]);
            double num2 = 0.0;
            string values = this.publicFun_0.GetValues(string.Concat(new object[] { "select StudyFen from GradeReule where PaperID=", this.int_0, " and (", num, ">=MinValue  and ", num, "<=MaxValue)" }), "StudyFen");
            if (values.Trim() == "")
            {
                values = "0";
            }
            num2 = Convert.ToDouble(values);
            string str2 = this.ViewState["ExamName"].ToString();
            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "delete  UserStudyFen where ExamOrStudy='E' and UserCode='", this.httpCookie_0.Value, "' and Formtable='PaperInfo' and FormID=", this.int_0, ";insert into UserStudyFen(UserCode,ExamStudyName,StudyFen,Formtable,FormID,ExamOrStudy) values('", this.httpCookie_0.Value, "','", str2, "','", num2, "','PaperInfo','", this.int_0, "','E')" }));
        }

        private void method_1()
        {
            int index = 0;
            string[] strArray = this.ViewState["SumRubricListID"].ToString().Split(new char[] { ',' });
            this.labRecored.Text = "当前题数：" + ((Convert.ToInt32(this.ViewState["NowRubricLocation"].ToString().Trim()) + 1)).ToString() + "/" + strArray.Length.ToString();
            string[] strArray2 = this.ViewState["RubricFen"].ToString().Split(new char[] { '#' });
            string[] strArray3 = this.ViewState["RubricMemo"].ToString().Split(new char[] { '#' });
            string str = "";
            str = "<table   borderColor='#cccccc' cellSpacing='0' borderColorDark='#cccccc' cellPadding='0' width='100%' align='center' border='1' style='border-style:Solid;'>";
            str = str + "<tr height='30'><td align='left' bgcolor='#5AA6E4'>";
            Random random = new Random();
            for (int i = 0; i < strArray.Length; i++)
            {
                if (i.ToString() == this.ViewState["NowRubricLocation"].ToString().Trim())
                {
                    this.DataGridInfo.Visible = true;
                    string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer from RubricInfo where ID=" + strArray[i].Trim();
                    SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                    SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
                    DataSet dataSet = new DataSet();
                    adapter.Fill(dataSet, "SRubric");
                    this.DataGridInfo.DataSource = dataSet.Tables["SRubric"].DefaultView;
                    this.DataGridInfo.DataBind();
                    for (int j = 0; j < this.DataGridInfo.Rows.Count; j++)
                    {
                        string[] strArray4;
                        string[] strArray5;
                        string[] strArray7;
                        string[] strArray8;
                        string[] strArray9;
                        string[] strArray10;
                        string[] strArray11;
                        string[] strArray12;
                        string[] strArray13;
                        string[] strArray14;
                        string[] strArray15;
                        string[] strArray16;
                        string[] strArray18;
                        string[] strArray20;
                        string[] strArray22;
                        int num9;
                        int num10;
                        string text;
                        string str6;
                        ListItem item3;
                        int num11;
                        ListItem item4;
                        int num13;
                        string str7 = "";
                        string[] strArray25 = dataSet.Tables["SRubric"].Rows[j]["OptionAnswer"].ToString().Split(new char[] { '#' });
                        Label label7 = (Label) this.DataGridInfo.Rows[j].FindControl("labRubricType");
                        Label label6 = (Label) this.DataGridInfo.Rows[j].FindControl("labDataTitle");
                        Label label = (Label) this.DataGridInfo.Rows[j].FindControl("labOKAnswer");
                        Label label2 = (Label) this.DataGridInfo.Rows[j].FindControl("labRubricID");
                        Label label3 = (Label) this.DataGridInfo.Rows[j].FindControl("labUPFile");
                        Label label5 = (Label) this.DataGridInfo.Rows[j].FindControl("labUpLoadFile");
                        Label label4 = (Label) this.DataGridInfo.Rows[j].FindControl("labOpertionFile");
                        label4.Visible = false;
                        label3.Visible = false;
                        label5.Visible = false;
                        RadioButtonList list = (RadioButtonList) this.DataGridInfo.Rows[j].FindControl("RBLData");
                        CheckBoxList list2 = (CheckBoxList) this.DataGridInfo.Rows[j].FindControl("CBLData");
                        TextBox box2 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerA");
                        TextBox box3 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerB");
                        TextBox box4 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerC");
                        TextBox box5 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerD");
                        TextBox box6 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerE");
                        TextBox box7 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerF");
                        TextBox box = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtAnswer");
                        box.Visible = false;
                        if (!(this.labPerRubricType.Text.Trim() != label7.Text.Trim()))
                        {
                            this.labRubricSortID.Text = Convert.ToString((int) (Convert.ToInt32(this.labRubricSortID.Text) + 1));
                        }
                        else
                        {
                            this.labPerRubricType.Text = label7.Text.Trim();
                            this.labRubricSortID.Text = "0";
                        }
                        switch (label7.Text.Trim())
                        {
                            case "A":
                                this.labPaperFlag.Text = "Y";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeA'></a>&nbsp;&nbsp;<b>" + this.publicFun_0.GetRubricType("A", this.int_0.ToString()) + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(每题<font color='#ff0000'>" + strArray2[0] + "</font>分,说明:" + strArray3[0] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray2[0];
                                list.Visible = true;
                                num13 = 0;
                                goto Label_0701;

                            case "B":
                                this.labPaperFlag.Text = "Y";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeB'></a>&nbsp;&nbsp;<b>" + this.publicFun_0.GetRubricType("B", this.int_0.ToString()) + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(每题<font color='#ff0000'>" + strArray2[1] + "</font>分,说明:" + strArray3[1] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray2[1];
                                list2.Visible = true;
                                num11 = 0;
                                goto Label_0BDB;

                            case "C":
                            {
                                this.labPaperFlag.Text = "Y";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeC'></a>&nbsp;&nbsp;<b>" + this.publicFun_0.GetRubricType("C", this.int_0.ToString()) + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(每题<font color='#ff0000'>" + strArray2[2] + "</font>分,说明:" + strArray3[2] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray2[2];
                                ListItem item = new ListItem("正确", "Y");
                                list.Items.Insert(0, item);
                                ListItem item2 = new ListItem("错误", "N");
                                list.Items.Insert(1, item2);
                                list.Visible = true;
                                strArray22 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricBWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricBWrite").Split(new char[] { '|' });
                                strArray20 = this.ViewState["RubricCListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_114A;
                            }
                            case "D":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeD'></a>&nbsp;&nbsp;<b>" + this.publicFun_0.GetRubricType("D", this.int_0.ToString()) + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(每题<font color='#ff0000'>" + strArray2[3] + "</font>分,说明:" + strArray3[3] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray2[3];
                                switch (label6.Text.ToString().Replace("___", "＃").Split(new char[] { '＃' }).Length)
                                {
                                    case 1:
                                        goto Label_12B9;

                                    case 2:
                                        goto Label_12EE;

                                    case 3:
                                        goto Label_1323;

                                    case 4:
                                        goto Label_1358;

                                    case 5:
                                        goto Label_138D;

                                    case 6:
                                        goto Label_13BF;

                                    case 7:
                                        goto Label_13F1;
                                }
                                goto Label_1421;

                            case "E":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeE'></a>&nbsp;&nbsp;<b>" + this.publicFun_0.GetRubricType("E", this.int_0.ToString()) + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(每题<font color='#ff0000'>" + strArray2[4] + "</font>分,说明:" + strArray3[4] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray2[4];
                                box.Visible = true;
                                strArray16 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricAWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricAWrite").Split(new char[] { '|' });
                                strArray15 = this.ViewState["RubricEListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_18B5;

                            case "F":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeF'></a>&nbsp;&nbsp;<b>" + this.publicFun_0.GetRubricType("F", this.int_0.ToString()) + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(每题<font color='#ff0000'>" + strArray2[5] + "</font>分,说明:" + strArray3[5] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray2[5];
                                box.Visible = true;
                                strArray14 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricCWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricCWrite").Split(new char[] { '|' });
                                strArray13 = this.ViewState["RubricFListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_1A7B;

                            case "G":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeG'></a>&nbsp;&nbsp;<b>" + this.publicFun_0.GetRubricType("G", this.int_0.ToString()) + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(每题<font color='#ff0000'>" + strArray2[6] + "</font>分,说明:" + strArray3[6] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray2[6];
                                box.Visible = true;
                                strArray12 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricTWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricTWrite").Split(new char[] { '|' });
                                strArray11 = this.ViewState["RubricGListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_1C41;

                            case "H":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeH'></a>&nbsp;&nbsp;<b>" + this.publicFun_0.GetRubricType("H", this.int_0.ToString()) + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(每题<font color='#ff0000'>" + strArray2[7] + "</font>分,说明:" + strArray3[7] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray2[7];
                                box.Visible = true;
                                strArray10 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricAnWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricAnWrite").Split(new char[] { '|' });
                                strArray9 = this.ViewState["RubricHListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_1E07;

                            case "I":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeI'></a>&nbsp;&nbsp;<b>" + this.publicFun_0.GetRubricType("I", this.int_0.ToString()) + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(每题<font color='#ff0000'>" + strArray2[8] + "</font>分,说明:" + strArray3[8] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray2[8];
                                label3.Visible = true;
                                label5.Visible = true;
                                label4.Visible = true;
                                strArray8 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricOWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricOWrite").Split(new char[] { '|' });
                                strArray7 = this.ViewState["RubricIListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_1FDD;

                            case "J":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeJ'></a>&nbsp;&nbsp;<b>" + this.publicFun_0.GetRubricType("J", this.int_0.ToString()) + "</b>&nbsp;&nbsp;&nbsp;&nbsp;(每题<font color='#ff0000'>" + strArray2[9] + "</font>分,说明:" + strArray3[9] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray2[9];
                                box.Visible = true;
                                strArray5 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricJWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricJWrite").Split(new char[] { '|' });
                                strArray4 = this.ViewState["RubricJListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_224C;

                            default:
                                goto Label_22A7;
                        }
                    Label_065B:
                        if (strArray25[num13].Trim() != "")
                        {
                            switch (num13)
                            {
                                case 0:
                                    str7 = "A";
                                    break;

                                case 1:
                                    str7 = "B";
                                    break;

                                case 2:
                                    str7 = "C";
                                    break;

                                case 3:
                                    str7 = "D";
                                    break;

                                case 4:
                                    str7 = "E";
                                    break;

                                case 5:
                                    str7 = "F";
                                    break;
                            }
                            item4 = new ListItem(strArray25[num13].Replace("＃", "#"), str7);
                            list.Items.Add(item4);
                        }
                        num13++;
                    Label_0701:
                        if (num13 < strArray25.Length)
                        {
                            goto Label_065B;
                        }
                        if (!(!(this.ViewState["PaperFlag"].ToString().Trim() == "B") ? !(this.ViewState["PaperFlag"].ToString().Trim() == "D") : false))
                        {
                            num9 = 0;
                            while (num9 < 3)
                            {
                                num10 = random.Next(list.Items.Count);
                                text = "";
                                str6 = "";
                                text = list.Items[num10].Text;
                                str6 = list.Items[num10].Value;
                                list.Items.RemoveAt(num10);
                                item3 = new ListItem(text, str6);
                                list.Items.Insert(0, item3);
                                num9++;
                            }
                        }
                        for (int k = 0; k < list.Items.Count; k++)
                        {
                            switch (k)
                            {
                                case 0:
                                    list.Items[k].Text = "A、" + list.Items[k].Text;
                                    break;

                                case 1:
                                    list.Items[k].Text = "B、" + list.Items[k].Text;
                                    break;

                                case 2:
                                    list.Items[k].Text = "C、" + list.Items[k].Text;
                                    break;

                                case 3:
                                    list.Items[k].Text = "D、" + list.Items[k].Text;
                                    break;

                                case 4:
                                    list.Items[k].Text = "E、" + list.Items[k].Text;
                                    break;

                                case 5:
                                    list.Items[k].Text = "F、" + list.Items[k].Text;
                                    break;
                            }
                        }
                        string[] strArray27 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricSWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricSWrite").Split(new char[] { '|' });
                        string[] strArray26 = this.ViewState["RubricAListID"].ToString().Split(new char[] { ',' });
                        index = 0;
                        while (index < strArray26.Length)
                        {
                            if (label2.Text.Trim() == strArray26[index].Trim())
                            {
                                goto Label_0A30;
                            }
                            index++;
                        }
                        goto Label_22A7;
                    Label_0A30:
                        if (!((strArray27[index].Trim() != "") ? !(strArray27[index].Trim() != "未填写") : true))
                        {
                            list.Items.FindByValue(strArray27[index].Trim()).Selected = true;
                            this.txtBSubmit.Value = "1";
                        }
                        goto Label_22A7;
                    Label_0B35:
                        if (strArray25[num11].Trim() != "")
                        {
                            switch (num11)
                            {
                                case 0:
                                    str7 = "A";
                                    break;

                                case 1:
                                    str7 = "B";
                                    break;

                                case 2:
                                    str7 = "C";
                                    break;

                                case 3:
                                    str7 = "D";
                                    break;

                                case 4:
                                    str7 = "E";
                                    break;

                                case 5:
                                    str7 = "F";
                                    break;
                            }
                            item4 = new ListItem(strArray25[num11].Replace("＃", "#"), str7);
                            list2.Items.Add(item4);
                        }
                        num11++;
                    Label_0BDB:
                        if (num11 < strArray25.Length)
                        {
                            goto Label_0B35;
                        }
                        if (!(!(this.ViewState["PaperFlag"].ToString().Trim() == "B") ? !(this.ViewState["PaperFlag"].ToString().Trim() == "D") : false))
                        {
                            for (num9 = 0; num9 < 3; num9++)
                            {
                                num10 = random.Next(list2.Items.Count);
                                text = "";
                                str6 = "";
                                text = list2.Items[num10].Text;
                                str6 = list2.Items[num10].Value;
                                list2.Items.RemoveAt(num10);
                                item3 = new ListItem(text, str6);
                                list2.Items.Insert(0, item3);
                            }
                        }
                        for (int m = 0; m < list2.Items.Count; m++)
                        {
                            switch (m)
                            {
                                case 0:
                                    list2.Items[m].Text = "A、" + list2.Items[m].Text;
                                    break;

                                case 1:
                                    list2.Items[m].Text = "B、" + list2.Items[m].Text;
                                    break;

                                case 2:
                                    list2.Items[m].Text = "C、" + list2.Items[m].Text;
                                    break;

                                case 3:
                                    list2.Items[m].Text = "D、" + list2.Items[m].Text;
                                    break;

                                case 4:
                                    list2.Items[m].Text = "E、" + list2.Items[m].Text;
                                    break;

                                case 5:
                                    list2.Items[m].Text = "F、" + list2.Items[m].Text;
                                    break;
                            }
                        }
                        string[] strArray24 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricDWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricDWrite").Split(new char[] { '|' });
                        string[] strArray23 = this.ViewState["RubricBListID"].ToString().Split(new char[] { ',' });
                        index = 0;
                        while (index < strArray23.Length)
                        {
                            if (label2.Text.Trim() == strArray23[index].Trim())
                            {
                                goto Label_0F0A;
                            }
                            index++;
                        }
                        goto Label_22A7;
                    Label_0F0A:
                        if (!((strArray24[index].Trim() != "") ? !(strArray24[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            strArray18 = strArray24[index].Trim().Split(new char[] { '#' });
                            for (int n = 0; n < strArray18.Length; n++)
                            {
                                if (strArray18[n].Trim() != "")
                                {
                                    list2.Items.FindByValue(strArray18[n].Trim()).Selected = true;
                                }
                            }
                        }
                        goto Label_22A7;
                    Label_1127:
                        if (label2.Text.Trim() == strArray20[index].Trim())
                        {
                            goto Label_1158;
                        }
                        index++;
                    Label_114A:
                        if (index < strArray20.Length)
                        {
                            goto Label_1127;
                        }
                        goto Label_22A7;
                    Label_1158:
                        if (!((strArray22[index].Trim() != "") ? !(strArray22[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            list.Items.FindByValue(strArray22[index].Trim()).Selected = true;
                        }
                        goto Label_22A7;
                    Label_12B9:
                        box2.Visible = false;
                        box3.Visible = false;
                        box4.Visible = false;
                        box5.Visible = false;
                        box6.Visible = false;
                        box7.Visible = false;
                        goto Label_1421;
                    Label_12EE:
                        box2.Visible = true;
                        box3.Visible = false;
                        box4.Visible = false;
                        box5.Visible = false;
                        box6.Visible = false;
                        box7.Visible = false;
                        goto Label_1421;
                    Label_1323:
                        box2.Visible = true;
                        box3.Visible = true;
                        box4.Visible = false;
                        box5.Visible = false;
                        box6.Visible = false;
                        box7.Visible = false;
                        goto Label_1421;
                    Label_1358:
                        box2.Visible = true;
                        box3.Visible = true;
                        box4.Visible = true;
                        box5.Visible = false;
                        box6.Visible = false;
                        box7.Visible = false;
                        goto Label_1421;
                    Label_138D:
                        box2.Visible = true;
                        box3.Visible = true;
                        box4.Visible = true;
                        box5.Visible = true;
                        box6.Visible = false;
                        box7.Visible = false;
                        goto Label_1421;
                    Label_13BF:
                        box2.Visible = true;
                        box3.Visible = true;
                        box4.Visible = true;
                        box5.Visible = true;
                        box6.Visible = true;
                        box7.Visible = false;
                        goto Label_1421;
                    Label_13F1:
                        box2.Visible = true;
                        box3.Visible = true;
                        box4.Visible = true;
                        box5.Visible = true;
                        box6.Visible = true;
                        box7.Visible = true;
                    Label_1421:
                        box2.Attributes.Add("onpaste", "return false");
                        box3.Attributes.Add("onpaste", "return false");
                        box4.Attributes.Add("onpaste", "return false");
                        box5.Attributes.Add("onpaste", "return false");
                        box6.Attributes.Add("onpaste", "return false");
                        box7.Attributes.Add("onpaste", "return false");
                        string[] strArray19 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricFWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricFWrite").Split(new char[] { '|' });
                        string[] strArray17 = this.ViewState["RubricDListID"].ToString().Split(new char[] { ',' });
                        index = 0;
                        while (index < strArray17.Length)
                        {
                            if (label2.Text.Trim() == strArray17[index].Trim())
                            {
                                goto Label_156A;
                            }
                            index++;
                        }
                        goto Label_22A7;
                    Label_156A:
                        if (!((strArray19[index].Trim() != "") ? !(strArray19[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            strArray18 = strArray19[index].Trim().Split(new char[] { '#' });
                            switch (strArray18.Length)
                            {
                                case 1:
                                    box2.Text = strArray18[0].Trim();
                                    break;

                                case 2:
                                    box2.Text = strArray18[0].Trim();
                                    box3.Text = strArray18[1].Trim();
                                    break;

                                case 3:
                                    box2.Text = strArray18[0].Trim();
                                    box3.Text = strArray18[1].Trim();
                                    box4.Text = strArray18[2].Trim();
                                    break;

                                case 4:
                                    box2.Text = strArray18[0].Trim();
                                    box3.Text = strArray18[1].Trim();
                                    box4.Text = strArray18[2].Trim();
                                    box5.Text = strArray18[3].Trim();
                                    break;

                                case 5:
                                    box2.Text = strArray18[0].Trim();
                                    box3.Text = strArray18[1].Trim();
                                    box4.Text = strArray18[2].Trim();
                                    box5.Text = strArray18[3].Trim();
                                    box6.Text = strArray18[4].Trim();
                                    break;

                                case 6:
                                    box2.Text = strArray18[0].Trim();
                                    box3.Text = strArray18[1].Trim();
                                    box4.Text = strArray18[2].Trim();
                                    box5.Text = strArray18[3].Trim();
                                    box6.Text = strArray18[4].Trim();
                                    box7.Text = strArray18[5].Trim();
                                    break;
                            }
                        }
                        goto Label_22A7;
                    Label_1892:
                        if (label2.Text.Trim() == strArray15[index].Trim())
                        {
                            goto Label_18C3;
                        }
                        index++;
                    Label_18B5:
                        if (index < strArray15.Length)
                        {
                            goto Label_1892;
                        }
                        goto Label_22A7;
                    Label_18C3:
                        if (!((strArray16[index].Trim() != "") ? !(strArray16[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            box.Text = strArray16[index].Trim().Replace(" <br/>", "\n");
                        }
                        goto Label_22A7;
                    Label_1A58:
                        if (label2.Text.Trim() == strArray13[index].Trim())
                        {
                            goto Label_1A89;
                        }
                        index++;
                    Label_1A7B:
                        if (index < strArray13.Length)
                        {
                            goto Label_1A58;
                        }
                        goto Label_22A7;
                    Label_1A89:
                        if ((strArray14[index].Trim() != "") && (strArray14[index].Trim() != "未填写"))
                        {
                            this.txtBSubmit.Value = "1";
                            box.Text = strArray14[index].Trim().Replace(" <br/>", "\n");
                        }
                        goto Label_22A7;
                    Label_1C1E:
                        if (label2.Text.Trim() == strArray11[index].Trim())
                        {
                            goto Label_1C4F;
                        }
                        index++;
                    Label_1C41:
                        if (index < strArray11.Length)
                        {
                            goto Label_1C1E;
                        }
                        goto Label_22A7;
                    Label_1C4F:
                        if (!((strArray12[index].Trim() != "") ? !(strArray12[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            box.Text = strArray12[index].Trim().Replace(" <br/>", "\n");
                        }
                        goto Label_22A7;
                    Label_1DE4:
                        if (label2.Text.Trim() == strArray9[index].Trim())
                        {
                            goto Label_1E15;
                        }
                        index++;
                    Label_1E07:
                        if (index < strArray9.Length)
                        {
                            goto Label_1DE4;
                        }
                        goto Label_22A7;
                    Label_1E15:
                        if (!((strArray10[index].Trim() != "") ? !(strArray10[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            box.Text = strArray10[index].Trim().Replace(" <br/>", "\n");
                        }
                        goto Label_22A7;
                    Label_1FBA:
                        if (label2.Text.Trim() == strArray7[index].Trim())
                        {
                            goto Label_1FEB;
                        }
                        index++;
                    Label_1FDD:
                        if (index < strArray7.Length)
                        {
                            goto Label_1FBA;
                        }
                        goto Label_22A7;
                    Label_1FEB:
                        label4.Text = "<a href='../FrmDownLoad.aspx?FileName=" + dataSet.Tables["SRubric"].Rows[j]["OptionAnswer"].ToString() + "' target=_blank>下载原题</a><br><br>";
                        label5.Text = string.Concat(new object[] { "<iframe id='file' name='file' src='FrmUPLoadFile.aspx?PaperID=", this.int_0, "&ID=", label2.Text.Trim(), "&Sort=", index.ToString(), "' height='22px' width='500'  frameborder='0' scrolling='no'></iframe>" });
                        if ((strArray8[index].Trim() != "") && (strArray8[index].Trim() != "未填写"))
                        {
                            this.txtBSubmit.Value = "1";
                            label3.Text = "<a href='../FrmDownLoad.aspx?FileName=" + strArray8[index].Trim() + "' target=_blank>已作答试题</a>";
                        }
                        goto Label_22A7;
                    Label_2229:
                        if (label2.Text.Trim() == strArray4[index].Trim())
                        {
                            goto Label_2257;
                        }
                        index++;
                    Label_224C:
                        if (index < strArray4.Length)
                        {
                            goto Label_2229;
                        }
                        goto Label_22A7;
                    Label_2257:
                        if (!((strArray5[index].Trim() != "") ? !(strArray5[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            box.Text = strArray5[index].Trim();
                        }
                    Label_22A7:
                        label.Visible = false;
                    }
                    adapter.Dispose();
                    dataSet.Clear();
                    dataSet.Dispose();
                    selectConnection.Close();
                    selectConnection.Dispose();
                }
            }
        }

        private void method_2(string string_3)
        {
            string strSql = "";
            double num = 0.0;
            if (!(string_3 == "B"))
            {
                strSql = string.Concat(new object[] { "update ExamUser set LastDate='", DateTime.Now.ToShortDateString(), "',Flag='", string_3, "' where UserCode='", this.httpCookie_0.Value.Trim(), "' and PaperID=", this.int_0 });
                this.publicFun_0.ExecuteSql(strSql);
                this.method_3(this.int_0.ToString(), this.httpCookie_0.Value);
            }
            else
            {
                num = 0.0;
                string str3 = Convert.ToString(base.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]);
                switch (str3)
                {
                    case "":
                    case null:
                        str3 = Convert.ToString(base.Request.ServerVariables["REMOTE_ADDR"]);
                        break;
                }
                string str2 = DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString();
                strSql = string.Concat(new object[] { "update ExamUser set JoinExamNum=JoinExamNum+1,StartTime='", str2, "', JoinDate='", DateTime.Now.ToShortDateString(), "',IsSave='1',LoginIP='", str3, "',Flag='", string_3, "',GetOldCountFen='", num.ToString(), "',GetCountFen='", num.ToString(), "' where UserCode='", this.httpCookie_0.Value.Trim(), "' and PaperID=", this.int_0 });
                this.publicFun_0.ExecuteSql(strSql);
            }
        }

        private void method_3(string string_3, string string_4)
        {
            string str = DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString();
            string str2 = "E";
            double num2 = 0.0;
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand("select RubricSFen,RubricDFen,RubricBFen,RubricFFen,RubricAFen,RubricCFen,RubricTFen,RubricANFen,RubricOFen,RubricJFen from CheckPaper where UserCode='" + string_4 + "' and PaperID='" + string_3 + "'", connection);
            SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
            if (!reader.Read())
            {
                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update ExamUser set GetOldCountFen=", num2, ",GetCountFen=0,Flag='E',EndTime='", str, "',LastDate='", DateTime.Now.ToShortDateString(), "' where UserCode='", string_4, "' and PaperID='", string_3, "'" }));
                this.ViewState["PaperSumFen"] = num2;
            }
            else
            {
                int num3;
                if (((((reader["RubricJFen"].ToString().Trim() == "") && (reader["RubricFFen"].ToString().Trim() == "")) && ((reader["RubricAFen"].ToString().Trim() == "") && (reader["RubricCFen"].ToString().Trim() == ""))) && ((reader["RubricTFen"].ToString().Trim() == "") && (reader["RubricANFen"].ToString().Trim() == ""))) && !(reader["RubricOFen"].ToString().Trim() != ""))
                {
                    str2 = "E";
                }
                else
                {
                    str2 = "D";
                }
                if (reader["RubricSFen"].ToString().Trim() != "")
                {
                    string[] strArray11 = reader["RubricSFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray11.Length; num3++)
                    {
                        if (strArray11[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray11[num3].Trim());
                        }
                    }
                }
                if (reader["RubricDFen"].ToString().Trim() != "")
                {
                    string[] strArray10 = reader["RubricDFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray10.Length; num3++)
                    {
                        if (strArray10[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray10[num3].Trim());
                        }
                    }
                }
                if (reader["RubricBFen"].ToString().Trim() != "")
                {
                    string[] strArray9 = reader["RubricBFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray9.Length; num3++)
                    {
                        if (strArray9[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray9[num3].Trim());
                        }
                    }
                }
                if (reader["RubricFFen"].ToString().Trim() != "")
                {
                    string[] strArray8 = reader["RubricFFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray8.Length; num3++)
                    {
                        if (strArray8[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray8[num3].Trim());
                        }
                    }
                }
                if (reader["RubricAFen"].ToString().Trim() != "")
                {
                    string[] strArray7 = reader["RubricAFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray7.Length; num3++)
                    {
                        if (strArray7[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray7[num3].Trim());
                        }
                    }
                }
                if (reader["RubricCFen"].ToString().Trim() != "")
                {
                    string[] strArray6 = reader["RubricCFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray6.Length; num3++)
                    {
                        if (strArray6[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray6[num3].Trim());
                        }
                    }
                }
                if (reader["RubricANFen"].ToString().Trim() != "")
                {
                    string[] strArray5 = reader["RubricANFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray5.Length; num3++)
                    {
                        if (strArray5[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray5[num3].Trim());
                        }
                    }
                }
                if (reader["RubricTFen"].ToString().Trim() != "")
                {
                    string[] strArray4 = reader["RubricTFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray4.Length; num3++)
                    {
                        if (strArray4[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray4[num3].Trim());
                        }
                    }
                }
                if (reader["RubricOFen"].ToString().Trim() != "")
                {
                    string[] strArray3 = reader["RubricOFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray3.Length; num3++)
                    {
                        if (strArray3[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray3[num3].Trim());
                        }
                    }
                }
                if (reader["RubricJFen"].ToString().Trim() != "")
                {
                    string[] strArray2 = reader["RubricJFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray2.Length; num3++)
                    {
                        if (strArray2[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray2[num3].Trim());
                        }
                    }
                }
                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update ExamUser set GetOldCountFen=", num2, ",GetCountFen=", num2, ",Flag='", str2, "',EndTime='", str, "',LastDate='", DateTime.Now.ToShortDateString(), "' where UserCode='", string_4, "' and PaperID='", string_3, "'" }));
                this.ViewState["PaperSumFen"] = num2;
            }
            reader.Close();
            command.Dispose();
            connection.Close();
            connection.Dispose();
        }

        private void method_4()
        {
            string str2 = "";
            string str3 = "";
            string str4 = "";
            string str5 = "";
            string str6 = "";
            string str7 = "";
            string str8 = "";
            string str9 = "";
            string str10 = "";
            string str11 = "";
            string str12 = "";
            string str13 = "";
            string str14 = "";
            string str15 = "";
            this.ViewState["NoWrite"] = "";
            this.ViewState["ErrFen"] = "";
            this.ViewState["ExamName"] = "";
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand(string.Concat(new object[] { "select a.NoWriteFen,a.ErrorFen,a.ExamTime,a.PaperStatus,a.IsShow,a.StartIP,a.EndIP,a.Flag,a.ExamName,b.SortInfo,a.RubricDist,a.FenDist,a.MemoDist,b.RubricS,b.RubricD,b.RubricB,b.RubricF,b.RubricA,b.RubricC,b.RubricT,b.RubricAN,b.RubricO,b.RubricJ  from PaperInfo a ,PaperData b where  b.UserCode='", this.httpCookie_0.Value, "' and a.ID=b.PaperID and a.ID=", this.int_0 }), connection);
            SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
            if (reader.Read())
            {
                this.ViewState["NoWrite"] = reader["NoWriteFen"].ToString();
                this.ViewState["ErrFen"] = reader["ErrorFen"].ToString();
                this.ViewState["ExamName"] = reader["ExamName"].ToString();
                if (!(reader["IsShow"].ToString() != "Y"))
                {
                    this.ViewState["IEBack"] = "0";
                }
                else
                {
                    ScriptManager.RegisterStartupScript(this.UPPart, this.Page.GetType(), "BBackA", "window.onblur=auto_submit;", true);
                    this.ViewState["IEBack"] = "1";
                }
                string userIP = Convert.ToString(base.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]);
                string startIP = reader["StartIP"].ToString();
                string endIP = reader["EndIP"].ToString();
                if (!(!(userIP == "") ? (userIP != null) : false))
                {
                    userIP = Convert.ToString(base.Request.ServerVariables["REMOTE_ADDR"]);
                }
                if (!this.publicFun_0.CheckIP(userIP, startIP, endIP))
                {
                    ScriptManager.RegisterStartupScript(this.UPPart, this.Page.GetType(), "BCheckIP", "alert('您的IP被拒绝考试,系统管理员设置了此份试卷考试的IP范围！');window.close();", true);
                    return;
                }
                this.ViewState["PaperFlag"] = reader["Flag"].ToString();
                this.string_2 = reader["ExamName"].ToString();
                str2 = reader["RubricDist"].ToString();
                str3 = reader["FenDist"].ToString();
                str4 = reader["MemoDist"].ToString();
                str5 = reader["SortInfo"].ToString();
                this.ViewState["RubricMemo"] = str4;
                this.ViewState["RubricFen"] = str3;
                this.ViewState["RubricSort"] = str5;
                str6 = reader["RubricS"].ToString();
                str7 = reader["RubricD"].ToString();
                str8 = reader["RubricB"].ToString();
                str9 = reader["RubricF"].ToString();
                str10 = reader["RubricA"].ToString();
                str11 = reader["RubricC"].ToString();
                str12 = reader["RubricT"].ToString();
                str13 = reader["RubricAN"].ToString();
                str14 = reader["RubricO"].ToString();
                str15 = reader["RubricJ"].ToString();
                this.ViewState["ExamType"] = reader["PaperStatus"].ToString();
            }
            reader.Close();
            command.Dispose();
            connection.Close();
            connection.Dispose();
            string[] strArray2 = str2.Split(new char[] { '#' });
            str3.Split(new char[] { '#' });
            str4.Split(new char[] { '#' });
            string[] strArray = str5.Split(new char[] { '#' });
            if (strArray2.Length <= 1)
            {
                ScriptManager.RegisterStartupScript(this.UPPart, this.Page.GetType(), "BNoData", "alert('对不起，没有读取到相关数据！');window.close();", true);
            }
            else
            {
                if (strArray2[0] != "0")
                {
                    this.method_5(str6, strArray[0], "A");
                }
                if (strArray2[1] != "0")
                {
                    this.method_5(str7, strArray[1], "B");
                }
                if (strArray2[2] != "0")
                {
                    this.method_5(str8, strArray[2], "C");
                }
                if (strArray2[3] != "0")
                {
                    this.method_5(str9, strArray[3], "D");
                }
                if (strArray2[4] != "0")
                {
                    this.method_5(str10, strArray[4], "E");
                }
                if (strArray2[5] != "0")
                {
                    this.method_5(str11, strArray[5], "F");
                }
                if (strArray2[6] != "0")
                {
                    this.method_5(str12, strArray[6], "G");
                }
                if (strArray2[7] != "0")
                {
                    this.method_5(str13, strArray[7], "H");
                }
                if (strArray2[8] != "0")
                {
                    this.method_5(str14, strArray[8], "I");
                }
                if (strArray2[9] != "0")
                {
                    this.method_5(str15, strArray[9], "J");
                }
            }
        }

        private void method_5(string string_3, string string_4, string string_5)
        {
            SqlConnection connection3;
            SqlCommand command3;
            SqlConnection connection4;
            SqlCommand command4;
            SqlConnection connection5;
            SqlCommand command5;
            SqlConnection connection6;
            SqlCommand command6;
            SqlConnection connection7;
            SqlCommand command7;
            string strSql = "";
            string str2 = "Select ID from RubricInfo ";
            str2 = str2 + " where ID in(" + string_3.Replace("#", ",") + "0) order by " + string_4;
            this.ViewState["SumRubricListID"] = this.ViewState["SumRubricListID"] + this.publicFun_0.GetValues(str2);
            strSql = str2;
            string str3 = "";
            string str4 = "";
            string str5 = "";
            str2 = "Select OKAnswer from RubricInfo ";
            str2 = str2 + " where ID in(" + string_3.Replace("#", ",") + "0) order by " + string_4;
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand(str2, connection);
            SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
            while (reader.Read())
            {
                str3 = str3 + reader[0].ToString() + "|";
                str4 = str4 + "0|";
                str5 = str5 + "未填写|";
            }
            reader.Close();
            command.Dispose();
            connection.Close();
            connection.Dispose();
            if (this.publicFun_0.GetValues(string.Concat(new object[] { "select PaperID from CheckPaper where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), "PaperID") != "")
            {
                switch (string_5)
                {
                    case "A":
                        this.ViewState["RubricAListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set CheckUserS='系统自动批改',RubricSWrite='", str5, "',RubricSOK='", str3, "',RubricSFen='", str4, "' where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }));
                        }
                        break;

                    case "B":
                        this.ViewState["RubricBListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set CheckUserD='系统自动批改',RubricDWrite='", str5, "',RubricDOK='", str3, "',RubricDFen='", str4, "' where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }));
                        }
                        break;

                    case "C":
                        this.ViewState["RubricCListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set CheckUserB='系统自动批改',RubricBWrite='", str5, "',RubricBOK='", str3, "',RubricBFen='", str4, "' where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }));
                        }
                        break;

                    case "D":
                        this.ViewState["RubricDListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection7 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection7.Open();
                            command7 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserF=@CheckUserF,RubricFWrite=@RubricFWrite,RubricFOK=@RubricFOK,RubricFFen=@RubricFFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection7);
                            command7.Parameters.Add("@CheckUserF", SqlDbType.VarChar, 50).Value = "还未批改";
                            command7.Parameters.Add("@RubricFWrite", SqlDbType.VarChar, 0x1388).Value = str5;
                            command7.Parameters.Add("@RubricFOK", SqlDbType.VarChar, 0x1388).Value = str3;
                            command7.Parameters.Add("@RubricFFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                            command7.ExecuteNonQuery();
                            command7.Dispose();
                            connection7.Close();
                            connection7.Dispose();
                        }
                        break;

                    case "E":
                        this.ViewState["RubricEListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection6 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection6.Open();
                            command6 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserA=@CheckUserA,RubricAWrite=@RubricAWrite,RubricAOK=@RubricAOK,RubricAFen=@RubricAFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection6);
                            command6.Parameters.Add("@CheckUserA", SqlDbType.VarChar, 50).Value = "还未批改";
                            command6.Parameters.Add("@RubricAWrite", SqlDbType.VarChar, 0x1388).Value = str5;
                            command6.Parameters.Add("@RubricAOK", SqlDbType.VarChar, 0x1388).Value = str3;
                            command6.Parameters.Add("@RubricAFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                            command6.ExecuteNonQuery();
                            command6.Dispose();
                            connection6.Close();
                            connection6.Dispose();
                        }
                        break;

                    case "F":
                        this.ViewState["RubricFListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection5 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection5.Open();
                            command5 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserC=@CheckUserC,RubricCWrite=@RubricCWrite,RubricCOK=@RubricCOK,RubricCFen=@RubricCFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection5);
                            command5.Parameters.Add("@CheckUserC", SqlDbType.VarChar, 50).Value = "还未批改";
                            command5.Parameters.Add("@RubricCWrite", SqlDbType.VarChar, 0x1388).Value = str5;
                            command5.Parameters.Add("@RubricCOK", SqlDbType.VarChar, 0x1388).Value = str3;
                            command5.Parameters.Add("@RubricCFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                            command5.ExecuteNonQuery();
                            command5.Dispose();
                            connection5.Close();
                            connection5.Dispose();
                        }
                        break;

                    case "G":
                        this.ViewState["RubricGListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection4 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection4.Open();
                            command4 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserT=@CheckUserT,RubricTWrite=@RubricTWrite,RubricTOK=@RubricTOK,RubricTFen=@RubricTFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection4);
                            command4.Parameters.Add("@CheckUserT", SqlDbType.VarChar, 50).Value = "还未批改";
                            command4.Parameters.Add("@RubricTWrite", SqlDbType.VarChar, 0x1388).Value = str5;
                            command4.Parameters.Add("@RubricTOK", SqlDbType.VarChar, 0x1388).Value = str3;
                            command4.Parameters.Add("@RubricTFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                            command4.ExecuteNonQuery();
                            command4.Dispose();
                            connection4.Close();
                            connection4.Dispose();
                        }
                        break;

                    case "H":
                        this.ViewState["RubricHListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection3 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection3.Open();
                            command3 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserAN=@CheckUserAN,RubricANWrite=@RubricANWrite,RubricANOK=@RubricANOK,RubricANFen=@RubricANFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection3);
                            command3.Parameters.Add("@CheckUserAN", SqlDbType.VarChar, 50).Value = "还未批改";
                            command3.Parameters.Add("@RubricANWrite", SqlDbType.VarChar, 0x1388).Value = str5;
                            command3.Parameters.Add("@RubricANOK", SqlDbType.VarChar, 0x1388).Value = str3;
                            command3.Parameters.Add("@RubricANFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                            command3.ExecuteNonQuery();
                            command3.Dispose();
                            connection3.Close();
                            connection3.Dispose();
                        }
                        break;

                    case "I":
                        this.ViewState["RubricIListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set CheckUserO='还未批改',RubricOWrite='", str5, "',RubricOOK='", str3, "',RubricOFen='", str4, "' where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }));
                        }
                        break;

                    case "J":
                        this.ViewState["RubricJListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection7 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection7.Open();
                            command7 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserJ=@CheckUserJ,RubricJWrite=@RubricJWrite,RubricJOK=@RubricJOK,RubricJFen=@RubricJFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection7);
                            command7.Parameters.Add("@CheckUserJ", SqlDbType.VarChar, 50).Value = "还未批改";
                            command7.Parameters.Add("@RubricJWrite", SqlDbType.Text).Value = str5;
                            command7.Parameters.Add("@RubricJOK", SqlDbType.Text).Value = str3;
                            command7.Parameters.Add("@RubricJFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                            command7.ExecuteNonQuery();
                            command7.Dispose();
                            connection7.Close();
                            connection7.Dispose();
                        }
                        break;
                }
            }
            else
            {
                string str8 = "insert into CheckPaper(UserCode,PaperID,RubricSWrite,RubricDWrite,RubricBWrite,RubricFWrite,RubricAWrite,RubricCWrite,RubricTWrite,RubricANWrite,RubricSOK,RubricDOK,RubricBOK,RubricFOK,RubricAOK,RubricCOK,RubricTOK,RubricANOK,RubricSFen,RubricDFen,RubricBFen,RubricFFen,RubricAFen,RubricCFen,RubricTFen,RubricANFen,CheckUserS,CheckUserD,CheckUserB,CheckUserF,CheckUserA,CheckUserC,CheckUserT,CheckUserAN,RubricOWrite,RubricOOK,RubricOFen,CheckUserO,RubricJWrite,RubricJOK,RubricJFen,CheckUserJ) values ";
                switch (string_5)
                {
                    case "A":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'", str5, "','','','','','','','','", str3, "','','','','','','','','", str4, "','','','','','','','','系统自动批改','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        this.ViewState["RubricAListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "B":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','", str5, "','','','','','','','','", str3, "','','','','','','','','", str4, "','','','','','','','','系统自动批改','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        this.ViewState["RubricBListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "C":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','", str5, "','','','','','','','','", str3, "','','','','','','','','", str4, "','','','','','','','','系统自动批改','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        this.ViewState["RubricCListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "D":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        connection7 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection7.Open();
                        command7 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserF=@CheckUserF,RubricFWrite=@RubricFWrite,RubricFOK=@RubricFOK,RubricFFen=@RubricFFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection7);
                        command7.Parameters.Add("@CheckUserF", SqlDbType.VarChar, 50).Value = "还未批改";
                        command7.Parameters.Add("@RubricFWrite", SqlDbType.VarChar, 0x1388).Value = str5;
                        command7.Parameters.Add("@RubricFOK", SqlDbType.VarChar, 0x1388).Value = str3;
                        command7.Parameters.Add("@RubricFFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                        command7.ExecuteNonQuery();
                        command7.Dispose();
                        connection7.Close();
                        connection7.Dispose();
                        this.ViewState["RubricDListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "E":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        connection6 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection6.Open();
                        command6 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserA=@CheckUserA,RubricAWrite=@RubricAWrite,RubricAOK=@RubricAOK,RubricAFen=@RubricAFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection6);
                        command6.Parameters.Add("@CheckUserA", SqlDbType.VarChar, 50).Value = "还未批改";
                        command6.Parameters.Add("@RubricAWrite", SqlDbType.VarChar, 0x1388).Value = str5;
                        command6.Parameters.Add("@RubricAOK", SqlDbType.VarChar, 0x1388).Value = str3;
                        command6.Parameters.Add("@RubricAFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                        command6.ExecuteNonQuery();
                        command6.Dispose();
                        connection6.Close();
                        connection6.Dispose();
                        this.ViewState["RubricEListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "F":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        connection5 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection5.Open();
                        command5 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserC=@CheckUserC,RubricCWrite=@RubricCWrite,RubricCOK=@RubricCOK,RubricCFen=@RubricCFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection5);
                        command5.Parameters.Add("@CheckUserC", SqlDbType.VarChar, 50).Value = "还未批改";
                        command5.Parameters.Add("@RubricCWrite", SqlDbType.VarChar, 0x1388).Value = str5;
                        command5.Parameters.Add("@RubricCOK", SqlDbType.VarChar, 0x1388).Value = str3;
                        command5.Parameters.Add("@RubricCFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                        command5.ExecuteNonQuery();
                        command5.Dispose();
                        connection5.Close();
                        connection5.Dispose();
                        this.ViewState["RubricFListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "G":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        connection4 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection4.Open();
                        command4 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserT=@CheckUserT,RubricTWrite=@RubricTWrite,RubricTOK=@RubricTOK,RubricTFen=@RubricTFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection4);
                        command4.Parameters.Add("@CheckUserT", SqlDbType.VarChar, 50).Value = "还未批改";
                        command4.Parameters.Add("@RubricTWrite", SqlDbType.VarChar, 0x1388).Value = str5;
                        command4.Parameters.Add("@RubricTOK", SqlDbType.VarChar, 0x1388).Value = str3;
                        command4.Parameters.Add("@RubricTFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                        command4.ExecuteNonQuery();
                        command4.Dispose();
                        connection4.Close();
                        connection4.Dispose();
                        this.ViewState["RubricGListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "H":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        connection3 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection3.Open();
                        command3 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserAN=@CheckUserAN,RubricANWrite=@RubricANWrite,RubricANOK=@RubricANOK,RubricANFen=@RubricANFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection3);
                        command3.Parameters.Add("@CheckUserAN", SqlDbType.VarChar, 50).Value = "还未批改";
                        command3.Parameters.Add("@RubricANWrite", SqlDbType.VarChar, 0x1388).Value = str5;
                        command3.Parameters.Add("@RubricANOK", SqlDbType.VarChar, 0x1388).Value = str3;
                        command3.Parameters.Add("@RubricANFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                        command3.ExecuteNonQuery();
                        command3.Dispose();
                        connection3.Close();
                        connection3.Dispose();
                        this.ViewState["RubricHListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "I":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','", str5, "','", str3, "','", str4, "','还未批改','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        this.ViewState["RubricIListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "J":
                    {
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        SqlConnection connection2 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection2.Open();
                        SqlCommand command2 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserJ=@CheckUserJ,RubricJWrite=@RubricJWrite,RubricJOK=@RubricJOK,RubricJFen=@RubricJFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection2);
                        command2.Parameters.Add("@CheckUserJ", SqlDbType.VarChar, 50).Value = "还未批改";
                        command2.Parameters.Add("@RubricJWrite", SqlDbType.Text).Value = str5;
                        command2.Parameters.Add("@RubricJOK", SqlDbType.Text).Value = str3;
                        command2.Parameters.Add("@RubricJFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                        command2.ExecuteNonQuery();
                        command2.Dispose();
                        connection2.Close();
                        connection2.Dispose();
                        this.ViewState["RubricJListID"] = this.publicFun_0.GetValues(strSql);
                        break;
                    }
                }
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.httpCookie_0 = new HttpCookie("ExamUserCode");
            this.httpCookie_0 = base.Request.Cookies["ExamUserCode"];
            this.httpCookie_1 = new HttpCookie("ExamUserName");
            this.httpCookie_1 = base.Request.Cookies["ExamUserName"];
            this.httpCookie_2 = new HttpCookie("ExamUserLevel");
            this.httpCookie_2 = base.Request.Cookies["ExamUserLevel"];
            this.httpCookie_3 = new HttpCookie("ExamDeptID");
            this.httpCookie_3 = base.Request.Cookies["ExamDeptID"];
            this.httpCookie_4 = new HttpCookie("ExamDeptName");
            this.httpCookie_4 = base.Request.Cookies["ExamDeptName"];
            if ((this.httpCookie_0 != null) && (this.httpCookie_0.Value != ""))
            {
                this.int_0 = Convert.ToInt32(base.Request["PaperID"].ToString());
                this.string_0 = base.Request["LoadInfo"].ToString();
                base.Response.Expires = 0;
                this.httpCookie_0.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_0.Value));
                this.httpCookie_1.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_1.Value));
                this.httpCookie_2.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_2.Value));
                this.httpCookie_3.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_3.Value));
                this.httpCookie_4.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_4.Value));
                if (!base.IsPostBack)
                {
                    this.ViewState["IEBack"] = "0";
                    this.labPerRubricType.Text = "";
                    this.labRubricSortID.Text = "0";
                    this.ViewState["LoginTime"] = DateTime.Now.ToString();
                    this.ViewState["JoinExamStartTime"] = DateTime.Now.ToString();
                    this.ViewState["PaperSumFen"] = "0";
                    this.ViewState["SumRubricListID"] = "";
                    this.ViewState["RubricMemo"] = "";
                    this.ViewState["RubricSort"] = "";
                    this.ViewState["RubricFen"] = "";
                    this.ViewState["NowRubricLocation"] = "0";
                    this.ExamUserCode.Value = this.httpCookie_0.Value;
                    string str47 = "";
                    string str48 = "";
                    SqlConnection connection7 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                    connection7.Open();
                    SqlCommand command7 = new SqlCommand(string.Concat(new object[] { "select ExamName,ExamType,Flag,IsSave from ExamUser where UserCode='", this.httpCookie_0.Value.Trim(), "' and PaperID=", this.int_0 }), connection7);
                    SqlDataReader reader = command7.ExecuteReader(CommandBehavior.CloseConnection);
                    if (reader.Read())
                    {
                        this.ViewState["ExamName"] = reader["ExamName"].ToString();
                        str47 = reader["ExamType"].ToString();
                        str48 = reader["Flag"].ToString();
                        this.string_1 = reader["IsSave"].ToString();
                        this.ViewState["IsSave"] = this.string_1;
                        this.ViewState["ExamType"] = str47;
                    }
                    reader.Close();
                    command7.Dispose();
                    connection7.Close();
                    connection7.Dispose();
                    if (this.ViewState["ExamType"].ToString() == "C")
                    {
                        this.publicFun_0.ExecuteSql(string.Concat(new object[] { " delete Checkpaper where UserCode='", this.httpCookie_0.Value, "' and PaperID=", this.int_0 }));
                        this.ViewState["IsSave"] = "0";
                    }
                    if ((str47 == "A") && (str48 != "A"))
                    {
                        ScriptManager.RegisterStartupScript(this.UPPart, this.Page.GetType(), "BCheck", "alert('对不起，此份试卷您正在考试中或已经交卷，无法再操作！')", true);
                        return;
                    }
                    this.method_4();
                    if (this.ViewState["SumRubricListID"].ToString().Length > 1)
                    {
                        this.ViewState["SumRubricListID"] = this.ViewState["SumRubricListID"].ToString().Substring(0, this.ViewState["SumRubricListID"].ToString().Length - 1);
                    }
                    string strSql = string.Concat(new object[] { "delete from Systip where GetNumber='", this.httpCookie_0.Value, "' and Formtable='PaperInfo' and FormID=", this.int_0 });
                    strSql = strSql + ";insert into SysLogInfo(LogDisp,EditUser,EditUserCode) values('参加[" + this.ViewState["ExamName"].ToString() + "]考试并入考场！','" + this.httpCookie_1.Value + "','" + this.httpCookie_0.Value + "')";
                    this.publicFun_0.ExecuteSql(strSql);
                    this.method_2("B");
                    ScriptManager.RegisterStartupScript(this.UPPart, this.Page.GetType(), "BTip", "alert('退出考场时请单击[交卷]按钮，否则以零分计算！')", true);
                    if (this.ViewState["NowRubricLocation"].ToString().Trim() == "0")
                    {
                        this.txtBSubmit.Value = "2";
                        this.txtRubricSortID.Value = "0";
                        this.method_1();
                    }
                }
                else
                {
                    if (this.ViewState["IEBack"].ToString() == "1")
                    {
                        ScriptManager.RegisterStartupScript(this.UPPart, this.Page.GetType(), "BBack", "window.onblur=auto_submit;", true);
                    }
                    if (this.ViewState["NowRubricLocation"].ToString() == this.txtRubricSortID.Value.Trim())
                    {
                        try
                        {
                            int index = 0;
                            string str = "";
                            string str2 = "";
                            string str3 = "";
                            string[] strArray3 = this.ViewState["NoWrite"].ToString().Split(new char[] { '#' });
                            string[] strArray4 = this.ViewState["ErrFen"].ToString().Split(new char[] { '#' });
                            for (int j = 0; j < this.DataGridInfo.Rows.Count; j++)
                            {
                                string[] strArray6;
                                string[] strArray7;
                                int num10;
                                string str8;
                                string str9;
                                string[] strArray11;
                                string[] strArray12;
                                string[] strArray13;
                                int num14;
                                string[] strArray14;
                                string[] strArray15;
                                string[] strArray16;
                                int num16;
                                int num18;
                                string[] strArray18;
                                string[] strArray19;
                                string[] strArray20;
                                int num23;
                                string[] strArray22;
                                string[] strArray23;
                                string[] strArray24;
                                int num28;
                                string[] strArray25;
                                string[] strArray26;
                                string[] strArray27;
                                int num30;
                                string[] strArray29;
                                string[] strArray30;
                                string[] strArray31;
                                int num35;
                                string[] strArray34;
                                string[] strArray35;
                                string[] strArray36;
                                string[] strArray37;
                                string[] strArray38;
                                string str36;
                                string[] strArray39;
                                string[] strArray40;
                                string[] strArray41;
                                int num42;
                                string[] strArray42;
                                string[] strArray43;
                                string[] strArray44;
                                int num44;
                                int num47;
                                string str41;
                                int num53;
                                string[] strArray49;
                                string[] strArray50;
                                string[] strArray51;
                                int num54;
                                string[] strArray52;
                                string str28 = "";
                                Label label3 = (Label) this.DataGridInfo.Rows[j].FindControl("labRubricType");
                                Label label = (Label) this.DataGridInfo.Rows[j].FindControl("labOKAnswer");
                                Label label2 = (Label) this.DataGridInfo.Rows[j].FindControl("labRubricID");
                                label.Text = label.Text.Replace("<BR>", "").Replace("<br>", "").Replace("&nbsp;", "").ToUpper();
                                RadioButtonList list = (RadioButtonList) this.DataGridInfo.Rows[j].FindControl("RBLData");
                                Label label1 = (Label) this.DataGridInfo.Rows[j].FindControl("labUPFile");
                                Label label5 = (Label) this.DataGridInfo.Rows[j].FindControl("labUpLoadFile");
                                CheckBoxList list2 = (CheckBoxList) this.DataGridInfo.Rows[j].FindControl("CBLData");
                                TextBox box7 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerA");
                                TextBox box6 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerB");
                                TextBox box5 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerC");
                                TextBox box4 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerD");
                                TextBox box3 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerE");
                                TextBox box2 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerF");
                                TextBox box = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtAnswer");
                                box.Attributes.Add("onpaste", "return false");
                                switch (label3.Text.Trim())
                                {
                                    case "A":
                                    {
                                        num54 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "系统自动批改";
                                        string values = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricSWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricSWrite");
                                        string str45 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricSFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricSFen");
                                        strArray50 = values.Split(new char[] { '|' });
                                        strArray51 = str45.Split(new char[] { '|' });
                                        strArray52 = this.ViewState["RubricAListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_0C45;
                                    }
                                    case "B":
                                    {
                                        num44 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "系统自动批改";
                                        str41 = this.publicFun_0.GetValues("select ParmValue from SysParmInfo where ParmMemo='IsCheckBRubric'", "ParmValue").Trim();
                                        string str42 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricDWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricDWrite");
                                        string str43 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricDFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricDFen");
                                        strArray43 = str42.Split(new char[] { '|' });
                                        strArray44 = str43.Split(new char[] { '|' });
                                        strArray49 = this.ViewState["RubricBListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_1118;
                                    }
                                    case "C":
                                    {
                                        num42 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "系统自动批改";
                                        string str39 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricBWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricBWrite");
                                        string str40 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricBFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricBFen");
                                        strArray40 = str39.Split(new char[] { '|' });
                                        strArray41 = str40.Split(new char[] { '|' });
                                        strArray42 = this.ViewState["RubricCListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_1BC9;
                                    }
                                    case "D":
                                    {
                                        num35 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str37 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricFWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricFWrite");
                                        string str38 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricFFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricFFen");
                                        strArray30 = str37.Split(new char[] { '|' });
                                        strArray31 = str38.Split(new char[] { '|' });
                                        strArray39 = this.ViewState["RubricDListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_2080;
                                    }
                                    case "E":
                                    {
                                        num30 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str25 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricAWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricAWrite");
                                        string str26 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricAFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricAFen");
                                        strArray26 = str25.Split(new char[] { '|' });
                                        strArray27 = str26.Split(new char[] { '|' });
                                        strArray29 = this.ViewState["RubricEListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_373F;
                                    }
                                    case "F":
                                    {
                                        num28 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str22 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricCWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricCWrite");
                                        string str23 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricCFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricCFen");
                                        strArray23 = str22.Split(new char[] { '|' });
                                        strArray24 = str23.Split(new char[] { '|' });
                                        strArray25 = this.ViewState["RubricFListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_3CA1;
                                    }
                                    case "G":
                                    {
                                        num23 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str19 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricTWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricTWrite");
                                        string str20 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricTFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricTFen");
                                        strArray19 = str19.Split(new char[] { '|' });
                                        strArray20 = str20.Split(new char[] { '|' });
                                        strArray22 = this.ViewState["RubricGListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_40DE;
                                    }
                                    case "H":
                                    {
                                        num16 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str16 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricANWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricANWrite");
                                        string str17 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricANFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricANFen");
                                        strArray15 = str16.Split(new char[] { '|' });
                                        strArray16 = str17.Split(new char[] { '|' });
                                        strArray18 = this.ViewState["RubricHListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_4640;
                                    }
                                    case "I":
                                    {
                                        num14 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str13 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricOWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricOWrite");
                                        string str14 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricOFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricOFen");
                                        strArray12 = str13.Split(new char[] { '|' });
                                        strArray13 = str14.Split(new char[] { '|' });
                                        strArray14 = this.ViewState["RubricIListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_4B66;
                                    }
                                    case "J":
                                    {
                                        str3 = "还未批改";
                                        num10 = 0;
                                        str = "";
                                        str2 = "";
                                        string str10 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricJWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricJWrite");
                                        string str11 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricJFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricJFen");
                                        strArray6 = str10.Split(new char[] { '|' });
                                        strArray7 = str11.Split(new char[] { '|' });
                                        strArray11 = this.ViewState["RubricJListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_4EDA;
                                    }
                                    default:
                                    {
                                        continue;
                                    }
                                }
                            Label_0C1F:
                                if (label2.Text.Trim() == strArray52[index].Trim())
                                {
                                    goto Label_0C51;
                                }
                                index++;
                            Label_0C45:
                                if (index < strArray52.Length)
                                {
                                    goto Label_0C1F;
                                }
                                goto Label_0C55;
                            Label_0C51:
                                num54 = index;
                            Label_0C55:
                                if (list.SelectedIndex != -1)
                                {
                                    if (!(label.Text.Trim().Replace("<BR>", "").Replace("<br>", "").Replace("&nbsp;", "").ToUpper() == list.SelectedItem.Value.Trim()))
                                    {
                                        strArray51[num54] = "-" + strArray4[0].Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray4[0].Trim())));
                                    }
                                    else
                                    {
                                        strArray51[num54] = this.labFen.Text.Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(this.labFen.Text.Trim())));
                                    }
                                    strArray50[num54] = list.SelectedItem.Value.Trim();
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                else
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    strArray50[num54] = "未填写";
                                    strArray51[num54] = "-" + strArray3[0].Trim();
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray3[0].Trim())));
                                }
                                str = "";
                                str2 = "";
                                int num37 = 0;
                                while (num37 < strArray50.Length)
                                {
                                    if (strArray50[num37].Trim() != "")
                                    {
                                        str = str + strArray50[num37].Trim() + "|";
                                        str2 = str2 + strArray51[num37].Trim() + "|";
                                    }
                                    num37++;
                                }
                                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set RubricSWrite='", str, "',RubricSFen='", str2, "',CheckUserS='", str3, "'  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }));
                                continue;
                            Label_10F2:
                                if (label2.Text.Trim() == strArray49[index].Trim())
                                {
                                    goto Label_1124;
                                }
                                index++;
                            Label_1118:
                                if (index < strArray49.Length)
                                {
                                    goto Label_10F2;
                                }
                                goto Label_1128;
                            Label_1124:
                                num44 = index;
                            Label_1128:
                                num53 = 0;
                                while (num53 < list2.Items.Count)
                                {
                                    if (list2.Items[num53].Selected)
                                    {
                                        str28 = str28 + list2.Items[num53].Value + "#";
                                    }
                                    num53++;
                                }
                                if (str28.Length <= 0)
                                {
                                    strArray43[num44] = "未填写";
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    strArray44[num44] = "-" + strArray3[1].Trim();
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray3[1].Trim())));
                                    goto Label_19B3;
                                }
                                str28 = str28.Substring(0, str28.Length - 1);
                                strArray43[num44] = str28;
                                if (this.txtSubPaper.Value.Trim() == "1")
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                    this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                if (this.txtSubPaper.Value.Trim() == "2")
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                if (!(!(str41.Trim() == "") ? !(str41.Trim() == "Y") : false))
                                {
                                    string[] strArray47 = label.Text.Trim().Split(new char[] { '#' });
                                    string[] strArray48 = str28.Trim().Split(new char[] { '#' });
                                    if (strArray47.Length != strArray48.Length)
                                    {
                                        strArray44[num44] = "-" + strArray4[1].Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray4[1].Trim())));
                                    }
                                    else
                                    {
                                        int num50 = 0;
                                        for (int num51 = 0; num51 < strArray47.Length; num51++)
                                        {
                                            if (strArray47[num51].Trim() != "")
                                            {
                                                for (int num52 = 0; num52 < strArray48.Length; num52++)
                                                {
                                                    if ((strArray48[num52].Trim() != "") && (strArray48[num52].Trim() == strArray47[num51].Trim()))
                                                    {
                                                        num50++;
                                                    }
                                                }
                                            }
                                        }
                                        if (num50 != strArray47.Length)
                                        {
                                            strArray44[num44] = "-" + strArray4[1].Trim();
                                            this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray4[1].Trim())));
                                        }
                                        else
                                        {
                                            strArray44[num44] = this.labFen.Text.Trim();
                                            this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(this.labFen.Text.Trim())));
                                        }
                                    }
                                    goto Label_19B3;
                                }
                                if (!(str41 == "N"))
                                {
                                    goto Label_1793;
                                }
                                string[] strArray46 = label.Text.Trim().Split(new char[] { '#' });
                                string[] strArray45 = str28.Trim().Split(new char[] { '#' });
                                int num49 = 0;
                                if (strArray45.Length > strArray46.Length)
                                {
                                    goto Label_173D;
                                }
                                int num21 = 0;
                                while (num21 < strArray46.Length)
                                {
                                    if (strArray46[num21].Trim() != "")
                                    {
                                        num49++;
                                    }
                                    num21++;
                                }
                                double num48 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num49);
                                double num45 = 0.0;
                                int num46 = 0;
                                while (num46 < strArray45.Length)
                                {
                                    if (strArray45[num46].Trim() != "")
                                    {
                                        if (label.Text.Trim().IndexOf(strArray45[num46].Trim()) == -1)
                                        {
                                            goto Label_1678;
                                        }
                                        num47 = 0;
                                        while (num47 < strArray46.Length)
                                        {
                                            if (strArray46[num47].Trim() == strArray45[num46].Trim())
                                            {
                                                num45 += num48;
                                            }
                                            num47++;
                                        }
                                    }
                                    num46++;
                                }
                                goto Label_1683;
                            Label_1678:
                                num45 = 0.0;
                            Label_1683:
                                if (num45 == 0.0)
                                {
                                    strArray44[num44] = "-" + strArray4[1].Trim();
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray4[1].Trim())));
                                }
                                else
                                {
                                    strArray44[num44] = num45.ToString("0.00");
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num45.ToString("0.00"))));
                                }
                                goto Label_19B3;
                            Label_173D:
                                strArray44[num44] = "-" + strArray4[1].Trim();
                                this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray4[1].Trim())));
                                goto Label_19B3;
                            Label_1793:;
                                strArray46 = label.Text.Trim().Split(new char[] { '#' });
                                strArray45 = str28.Trim().Split(new char[] { '#' });
                                if (strArray45.Length <= strArray46.Length)
                                {
                                    num49 = 0;
                                    num21 = 0;
                                    while (num21 < strArray46.Length)
                                    {
                                        if (strArray46[num21].Trim() != "")
                                        {
                                            num49++;
                                        }
                                        num21++;
                                    }
                                    num48 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num49);
                                    num45 = 0.0;
                                    for (num46 = 0; num46 < strArray45.Length; num46++)
                                    {
                                        if (strArray45[num46].Trim() != "")
                                        {
                                            for (num47 = 0; num47 < strArray46.Length; num47++)
                                            {
                                                if (strArray46[num47].Trim() == strArray45[num46].Trim())
                                                {
                                                    num45 += num48;
                                                }
                                            }
                                        }
                                    }
                                    if (!(num45 == 0.0))
                                    {
                                        strArray44[num44] = num45.ToString("0.00");
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num45.ToString("0.00"))));
                                    }
                                    else
                                    {
                                        strArray44[num44] = "-" + strArray4[1].Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray4[1].Trim())));
                                    }
                                }
                                else
                                {
                                    strArray44[num44] = "-" + strArray4[1].Trim();
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray4[1].Trim())));
                                }
                            Label_19B3:
                                str = "";
                                str2 = "";
                                for (int k = 0; k < strArray43.Length; k++)
                                {
                                    if (strArray43[k].Trim() != "")
                                    {
                                        str = str + strArray43[k].Trim() + "|";
                                        str2 = str2 + strArray44[k].Trim() + "|";
                                    }
                                }
                                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set RubricDWrite='", str, "',RubricDFen='", str2, "',CheckUserD='", str3, "'  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }));
                                continue;
                            Label_1BA3:
                                if (label2.Text.Trim() == strArray42[index].Trim())
                                {
                                    goto Label_1BD5;
                                }
                                index++;
                            Label_1BC9:
                                if (index < strArray42.Length)
                                {
                                    goto Label_1BA3;
                                }
                                goto Label_1BD9;
                            Label_1BD5:
                                num42 = index;
                            Label_1BD9:
                                if (list.SelectedIndex != -1)
                                {
                                    if (!(label.Text.Trim().Replace("<BR>", "").Replace("<br>", "").Replace("&nbsp;", "").ToUpper() == list.SelectedItem.Value.Trim()))
                                    {
                                        strArray41[num42] = "-" + strArray4[2].Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray4[2].Trim())));
                                    }
                                    else
                                    {
                                        strArray41[num42] = this.labFen.Text.Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(this.labFen.Text.Trim())));
                                    }
                                    strArray40[num42] = list.SelectedItem.Value.Trim();
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                else
                                {
                                    strArray40[num42] = "未填写";
                                    strArray41[num42] = "-" + strArray3[2].Trim();
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray3[2].Trim())));
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                str = "";
                                str2 = "";
                                for (int m = 0; m < strArray40.Length; m++)
                                {
                                    if (strArray40[m].Trim() != "")
                                    {
                                        str = str + strArray40[m].Trim() + "|";
                                        str2 = str2 + strArray41[m].Trim() + "|";
                                    }
                                }
                                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set RubricBWrite='", str, "',RubricBFen='", str2, "',CheckUserB='", str3, "'  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }));
                                continue;
                            Label_205A:
                                if (label2.Text.Trim() == strArray39[index].Trim())
                                {
                                    goto Label_208C;
                                }
                                index++;
                            Label_2080:
                                if (index < strArray39.Length)
                                {
                                    goto Label_205A;
                                }
                                goto Label_2090;
                            Label_208C:
                                num35 = index;
                            Label_2090:
                                str36 = this.publicFun_0.GetValues("select ParmValue from SysParmInfo where ParmMemo='IsCheckDRubric'", "ParmValue").Trim();
                                if (!(str36.Trim() == "") ? !(str36.Trim() == "N") : false)
                                {
                                    str36 = "Z";
                                }
                                else if (str36.Trim() == "")
                                {
                                    str36 = "N";
                                }
                                if (str36 == "N")
                                {
                                    label.Text = label.Text.ToLower();
                                    box7.Text = box7.Text.ToLower();
                                    box6.Text = box6.Text.ToLower();
                                    box5.Text = box5.Text.ToLower();
                                    box4.Text = box4.Text.ToLower();
                                    box3.Text = box3.Text.ToLower();
                                    box2.Text = box2.Text.ToLower();
                                }
                                string[] strArray33 = label.Text.Trim().Replace("<BR>", "").Replace("<br>", "").Replace("&nbsp;", "").Split(new char[] { '#' });
                                int num40 = 0;
                                num21 = 0;
                                while (num21 < strArray33.Length)
                                {
                                    if (strArray33[num21].Trim() != "")
                                    {
                                        num40++;
                                    }
                                    num21++;
                                }
                                double num38 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num40);
                                double num36 = 0.0;
                                string str35 = "0";
                                if (box7.Visible)
                                {
                                    str28 = str28 + box7.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                    if (box7.Text.Trim() == "")
                                    {
                                        str35 = "1";
                                    }
                                }
                                if (box6.Visible)
                                {
                                    if (box6.Text.Trim() == "")
                                    {
                                        str35 = "1";
                                    }
                                    str28 = str28 + box6.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                }
                                if (box5.Visible)
                                {
                                    if (box5.Text.Trim() == "")
                                    {
                                        str35 = "1";
                                    }
                                    str28 = str28 + box5.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                }
                                if (box4.Visible)
                                {
                                    if (box4.Text.Trim() == "")
                                    {
                                        str35 = "1";
                                    }
                                    str28 = str28 + box4.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                }
                                if (box3.Visible)
                                {
                                    if (box3.Text.Trim() == "")
                                    {
                                        str35 = "1";
                                    }
                                    str28 = str28 + box3.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                }
                                if (box2.Visible)
                                {
                                    if (box2.Text.Trim() == "")
                                    {
                                        str35 = "1";
                                    }
                                    str28 = str28 + box2.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                }
                                if (str35.Trim() == "1")
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                else
                                {
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                if (box6.Text.Trim() == box7.Text.Trim())
                                {
                                    box6.Text = "";
                                }
                                if (box5.Text.Trim() == box7.Text.Trim())
                                {
                                    box5.Text = "";
                                }
                                if (box4.Text.Trim() == box7.Text.Trim())
                                {
                                    box4.Text = "";
                                }
                                if (box3.Text.Trim() == box7.Text.Trim())
                                {
                                    box3.Text = "";
                                }
                                if (box2.Text.Trim() == box7.Text.Trim())
                                {
                                    box2.Text = "";
                                }
                                if (box5.Text.Trim() == box6.Text.Trim())
                                {
                                    box5.Text = "";
                                }
                                if (box4.Text.Trim() == box6.Text.Trim())
                                {
                                    box4.Text = "";
                                }
                                if (box3.Text.Trim() == box6.Text.Trim())
                                {
                                    box3.Text = "";
                                }
                                if (box2.Text.Trim() == box6.Text.Trim())
                                {
                                    box2.Text = "";
                                }
                                if (box4.Text.Trim() == box5.Text.Trim())
                                {
                                    box4.Text = "";
                                }
                                if (box3.Text.Trim() == box5.Text.Trim())
                                {
                                    box3.Text = "";
                                }
                                if (box2.Text.Trim() == box5.Text.Trim())
                                {
                                    box2.Text = "";
                                }
                                if (box3.Text.Trim() == box4.Text.Trim())
                                {
                                    box3.Text = "";
                                }
                                if (box2.Text.Trim() == box4.Text.Trim())
                                {
                                    box2.Text = "";
                                }
                                if (box2.Text.Trim() == box3.Text.Trim())
                                {
                                    box2.Text = "";
                                }
                                switch (strArray33.Length)
                                {
                                    case 1:
                                        if (!box7.Visible)
                                        {
                                            goto Label_340B;
                                        }
                                        strArray38 = strArray33[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num37 = 0;
                                        goto Label_29C4;

                                    case 2:
                                        if (!box7.Visible)
                                        {
                                            goto Label_2A5F;
                                        }
                                        strArray38 = strArray33[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num37 = 0;
                                        goto Label_2A4C;

                                    case 3:
                                        if (!box7.Visible)
                                        {
                                            goto Label_2B6A;
                                        }
                                        strArray38 = strArray33[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num37 = 0;
                                        goto Label_2B57;

                                    case 4:
                                        if (!box7.Visible)
                                        {
                                            goto Label_2CF5;
                                        }
                                        strArray38 = strArray33[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num37 = 0;
                                        goto Label_2CE2;

                                    case 5:
                                        if (!box7.Visible)
                                        {
                                            goto Label_2F00;
                                        }
                                        strArray38 = strArray33[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num37 = 0;
                                        goto Label_2EED;

                                    case 6:
                                        if (!box7.Visible)
                                        {
                                            goto Label_318B;
                                        }
                                        strArray38 = strArray33[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num37 = 0;
                                        goto Label_3178;

                                    default:
                                        goto Label_340B;
                                }
                            Label_299E:
                                if (strArray38[num37].Trim() == box7.Text.Trim())
                                {
                                    goto Label_29D3;
                                }
                                num37++;
                            Label_29C4:
                                if (num37 < strArray38.Length)
                                {
                                    goto Label_299E;
                                }
                                goto Label_340B;
                            Label_29D3:
                                num36 += num38;
                                goto Label_340B;
                            Label_2A26:
                                if (strArray38[num37].Trim() == box7.Text.Trim())
                                {
                                    goto Label_2A58;
                                }
                                num37++;
                            Label_2A4C:
                                if (num37 < strArray38.Length)
                                {
                                    goto Label_2A26;
                                }
                                goto Label_2A5F;
                            Label_2A58:
                                num36 += num38;
                            Label_2A5F:
                                if (box6.Visible)
                                {
                                    strArray37 = strArray33[1].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray37.Length)
                                    {
                                        if (strArray37[num37].Trim() == box6.Text.Trim())
                                        {
                                            goto Label_2ADE;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_340B;
                            Label_2ADE:
                                num36 += num38;
                                goto Label_340B;
                            Label_2B31:
                                if (strArray38[num37].Trim() == box7.Text.Trim())
                                {
                                    goto Label_2B63;
                                }
                                num37++;
                            Label_2B57:
                                if (num37 < strArray38.Length)
                                {
                                    goto Label_2B31;
                                }
                                goto Label_2B6A;
                            Label_2B63:
                                num36 += num38;
                            Label_2B6A:
                                if (box6.Visible)
                                {
                                    strArray37 = strArray33[1].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray37.Length)
                                    {
                                        if (strArray37[num37].Trim() == box6.Text.Trim())
                                        {
                                            goto Label_2BE3;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_2BEA;
                            Label_2BE3:
                                num36 += num38;
                            Label_2BEA:
                                if (box5.Visible)
                                {
                                    strArray36 = strArray33[2].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray36.Length)
                                    {
                                        if (strArray36[num37].Trim() == box5.Text.Trim())
                                        {
                                            goto Label_2C69;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_340B;
                            Label_2C69:
                                num36 += num38;
                                goto Label_340B;
                            Label_2CBC:
                                if (strArray38[num37].Trim() == box7.Text.Trim())
                                {
                                    goto Label_2CEE;
                                }
                                num37++;
                            Label_2CE2:
                                if (num37 < strArray38.Length)
                                {
                                    goto Label_2CBC;
                                }
                                goto Label_2CF5;
                            Label_2CEE:
                                num36 += num38;
                            Label_2CF5:
                                if (box6.Visible)
                                {
                                    strArray37 = strArray33[1].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray37.Length)
                                    {
                                        if (strArray37[num37].Trim() == box6.Text.Trim())
                                        {
                                            goto Label_2D6E;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_2D75;
                            Label_2D6E:
                                num36 += num38;
                            Label_2D75:
                                if (box5.Visible)
                                {
                                    strArray36 = strArray33[2].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray36.Length)
                                    {
                                        if (strArray36[num37].Trim() == box5.Text.Trim())
                                        {
                                            goto Label_2DEE;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_2DF5;
                            Label_2DEE:
                                num36 += num38;
                            Label_2DF5:
                                if (box4.Visible)
                                {
                                    strArray35 = strArray33[3].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray35.Length)
                                    {
                                        if (strArray35[num37].Trim() == box4.Text.Trim())
                                        {
                                            goto Label_2E74;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_340B;
                            Label_2E74:
                                num36 += num38;
                                goto Label_340B;
                            Label_2EC7:
                                if (strArray38[num37].Trim() == box7.Text.Trim())
                                {
                                    goto Label_2EF9;
                                }
                                num37++;
                            Label_2EED:
                                if (num37 < strArray38.Length)
                                {
                                    goto Label_2EC7;
                                }
                                goto Label_2F00;
                            Label_2EF9:
                                num36 += num38;
                            Label_2F00:
                                if (box6.Visible)
                                {
                                    strArray37 = strArray33[1].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray37.Length)
                                    {
                                        if (strArray37[num37].Trim() == box6.Text.Trim())
                                        {
                                            goto Label_2F79;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_2F80;
                            Label_2F79:
                                num36 += num38;
                            Label_2F80:
                                if (box5.Visible)
                                {
                                    strArray36 = strArray33[2].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray36.Length)
                                    {
                                        if (strArray36[num37].Trim() == box5.Text.Trim())
                                        {
                                            goto Label_2FF9;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_3000;
                            Label_2FF9:
                                num36 += num38;
                            Label_3000:
                                if (box4.Visible)
                                {
                                    strArray35 = strArray33[3].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray35.Length)
                                    {
                                        if (strArray35[num37].Trim() == box4.Text.Trim())
                                        {
                                            goto Label_3079;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_3080;
                            Label_3079:
                                num36 += num38;
                            Label_3080:
                                if (box3.Visible)
                                {
                                    strArray34 = strArray33[4].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray34.Length)
                                    {
                                        if (strArray34[num37].Trim() == box3.Text.Trim())
                                        {
                                            goto Label_30FF;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_340B;
                            Label_30FF:
                                num36 += num38;
                                goto Label_340B;
                            Label_3152:
                                if (strArray38[num37].Trim() == box7.Text.Trim())
                                {
                                    goto Label_3184;
                                }
                                num37++;
                            Label_3178:
                                if (num37 < strArray38.Length)
                                {
                                    goto Label_3152;
                                }
                                goto Label_318B;
                            Label_3184:
                                num36 += num38;
                            Label_318B:
                                if (box6.Visible)
                                {
                                    strArray37 = strArray33[1].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray37.Length)
                                    {
                                        if (strArray37[num37].Trim() == box6.Text.Trim())
                                        {
                                            goto Label_3204;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_320B;
                            Label_3204:
                                num36 += num38;
                            Label_320B:
                                if (box5.Visible)
                                {
                                    strArray36 = strArray33[2].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray36.Length)
                                    {
                                        if (strArray36[num37].Trim() == box5.Text.Trim())
                                        {
                                            goto Label_3284;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_328B;
                            Label_3284:
                                num36 += num38;
                            Label_328B:
                                if (box4.Visible)
                                {
                                    strArray35 = strArray33[3].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray35.Length)
                                    {
                                        if (strArray35[num37].Trim() == box4.Text.Trim())
                                        {
                                            goto Label_3304;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_330B;
                            Label_3304:
                                num36 += num38;
                            Label_330B:
                                if (box3.Visible)
                                {
                                    strArray34 = strArray33[4].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num37 = 0;
                                    while (num37 < strArray34.Length)
                                    {
                                        if (strArray34[num37].Trim() == box3.Text.Trim())
                                        {
                                            goto Label_3384;
                                        }
                                        num37++;
                                    }
                                }
                                goto Label_338B;
                            Label_3384:
                                num36 += num38;
                            Label_338B:
                                if (box2.Visible)
                                {
                                    string[] strArray32 = strArray33[5].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    for (num37 = 0; num37 < strArray32.Length; num37++)
                                    {
                                        if (strArray32[num37].Trim() == box2.Text.Trim())
                                        {
                                            goto Label_3404;
                                        }
                                    }
                                }
                                goto Label_340B;
                            Label_3404:
                                num36 += num38;
                            Label_340B:
                                if (!(str28.Trim() != ""))
                                {
                                    strArray30[num35] = "未填写";
                                    strArray31[num35] = "0";
                                }
                                else
                                {
                                    str28 = str28.Replace("|", "｜");
                                    strArray30[num35] = str28.Substring(0, str28.Length - 1);
                                    strArray31[num35] = num36.ToString("0.00");
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num36.ToString("0.00"))));
                                }
                                str = "";
                                str2 = "";
                                for (int n = 0; n < (strArray30.Length - 1); n++)
                                {
                                    if (strArray30[n].Trim() == "")
                                    {
                                        strArray30[n] = "未填写";
                                    }
                                    str = str + strArray30[n].Trim() + "|";
                                    str2 = str2 + strArray31[n].Trim() + "|";
                                }
                                SqlConnection connection6 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection6.Open();
                                SqlCommand command6 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricFWrite=@RubricFWrite,RubricFFen=@RubricFFen,CheckUserF=@CheckUserF  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection6);
                                command6.Parameters.Add("@RubricFWrite", SqlDbType.Text).Value = str;
                                command6.Parameters.Add("@RubricFFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command6.Parameters.Add("@CheckUserF", SqlDbType.VarChar, 20).Value = str3;
                                command6.ExecuteNonQuery();
                                command6.Dispose();
                                connection6.Close();
                                connection6.Dispose();
                                continue;
                            Label_3719:
                                if (label2.Text.Trim() == strArray29[index].Trim())
                                {
                                    goto Label_374B;
                                }
                                index++;
                            Label_373F:
                                if (index < strArray29.Length)
                                {
                                    goto Label_3719;
                                }
                                goto Label_374F;
                            Label_374B:
                                num30 = index;
                            Label_374F:;
                                string[] strArray28 = label.Text.Trim().Split(new char[] { ',' });
                                int num33 = 0;
                                num21 = 0;
                                while (num21 < strArray28.Length)
                                {
                                    if (strArray28[num21].Trim() != "")
                                    {
                                        num33++;
                                    }
                                    num21++;
                                }
                                if (num33 == 0)
                                {
                                    num33 = 1;
                                }
                                double num32 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num33);
                                double num31 = 0.0;
                                if (box.Text.Trim() != "")
                                {
                                    num18 = 0;
                                    while (num18 < strArray28.Length)
                                    {
                                        if ((strArray28[num18].Trim() != "") && (box.Text.Trim().IndexOf(strArray28[num18].Trim()) != -1))
                                        {
                                            num31 += num32;
                                        }
                                        num18++;
                                    }
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num31.ToString("0.00"))));
                                    str9 = box.Text.Trim().Replace("|", "｜").Replace("'", "＇");
                                    str9 = base.Server.HtmlEncode(str9).Replace("\n", " <br/>").Replace(" ", " ");
                                    str9 = base.Server.HtmlDecode(str9);
                                    strArray26[num30] = str9;
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                else
                                {
                                    strArray26[num30] = "未填写";
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                strArray27[num30] = num31.ToString("0.00");
                                str = "";
                                str2 = "";
                                for (int num29 = 0; num29 < strArray26.Length; num29++)
                                {
                                    if (strArray26[num29].Trim() != "")
                                    {
                                        str = str + strArray26[num29].Trim() + "|";
                                        str2 = str2 + strArray27[num29].Trim() + "|";
                                    }
                                }
                                SqlConnection connection5 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection5.Open();
                                SqlCommand command5 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricAWrite=@RubricAWrite,RubricAFen=@RubricAFen,CheckUserA=@CheckUserA  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection5);
                                command5.Parameters.Add("@RubricAWrite", SqlDbType.Text).Value = str;
                                command5.Parameters.Add("@RubricAFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command5.Parameters.Add("@CheckUserA", SqlDbType.VarChar, 20).Value = str3;
                                command5.ExecuteNonQuery();
                                command5.Dispose();
                                connection5.Close();
                                connection5.Dispose();
                                continue;
                            Label_3C7B:
                                if (label2.Text.Trim() == strArray25[index].Trim())
                                {
                                    goto Label_3CAD;
                                }
                                index++;
                            Label_3CA1:
                                if (index < strArray25.Length)
                                {
                                    goto Label_3C7B;
                                }
                                goto Label_3CB1;
                            Label_3CAD:
                                num28 = index;
                            Label_3CB1:
                                if (box.Text.Trim() == "")
                                {
                                    strArray23[num28] = "未填写";
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                else
                                {
                                    str9 = box.Text.Trim().Replace("|", "｜").Replace("'", "＇");
                                    str9 = base.Server.HtmlEncode(str9).Replace("\n", " <br/>").Replace(" ", " ");
                                    str9 = base.Server.HtmlDecode(str9);
                                    strArray23[num28] = str9;
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                strArray24[num28] = "0";
                                str = "";
                                str2 = "";
                                for (int num27 = 0; num27 < strArray23.Length; num27++)
                                {
                                    if (strArray23[num27].Trim() != "")
                                    {
                                        str = str + strArray23[num27].Trim() + "|";
                                        str2 = str2 + strArray24[num27].Trim() + "|";
                                    }
                                }
                                SqlConnection connection4 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection4.Open();
                                SqlCommand command4 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricCWrite=@RubricCWrite,RubricCFen=@RubricCFen,CheckUserC=@CheckUserC  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection4);
                                command4.Parameters.Add("@RubricCWrite", SqlDbType.Text).Value = str;
                                command4.Parameters.Add("@RubricCFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command4.Parameters.Add("@CheckUserC", SqlDbType.VarChar, 20).Value = str3;
                                command4.ExecuteNonQuery();
                                command4.Dispose();
                                connection4.Close();
                                connection4.Dispose();
                                continue;
                            Label_40B8:
                                if (label2.Text.Trim() == strArray22[index].Trim())
                                {
                                    goto Label_40EA;
                                }
                                index++;
                            Label_40DE:
                                if (index < strArray22.Length)
                                {
                                    goto Label_40B8;
                                }
                                goto Label_40EE;
                            Label_40EA:
                                num23 = index;
                            Label_40EE:;
                                string[] strArray21 = label.Text.Trim().Split(new char[] { ',' });
                                int num26 = 0;
                                num21 = 0;
                                while (num21 < strArray21.Length)
                                {
                                    if (strArray21[num21].Trim() != "")
                                    {
                                        num26++;
                                    }
                                    num21++;
                                }
                                if (num26 == 0)
                                {
                                    num26 = 1;
                                }
                                double num25 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num26);
                                double num24 = 0.0;
                                if (box.Text.Trim() != "")
                                {
                                    num18 = 0;
                                    while (num18 < strArray21.Length)
                                    {
                                        if ((strArray21[num18].Trim() != "") && (box.Text.Trim().IndexOf(strArray21[num18].Trim()) != -1))
                                        {
                                            num24 += num25;
                                        }
                                        num18++;
                                    }
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num24.ToString("0.00"))));
                                    str9 = box.Text.Trim().Replace("|", "｜").Replace("'", "＇");
                                    str9 = base.Server.HtmlEncode(str9).Replace("\n", " <br/>").Replace(" ", " ");
                                    str9 = base.Server.HtmlDecode(str9);
                                    strArray19[num23] = str9;
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                else
                                {
                                    strArray19[num23] = "未填写";
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                strArray20[num23] = num24.ToString("0.00");
                                str = "";
                                str2 = "";
                                for (int num22 = 0; num22 < strArray19.Length; num22++)
                                {
                                    if (strArray19[num22].Trim() != "")
                                    {
                                        str = str + strArray19[num22].Trim() + "|";
                                        str2 = str2 + strArray20[num22].Trim() + "|";
                                    }
                                }
                                SqlConnection connection3 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection3.Open();
                                SqlCommand command3 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricTWrite=@RubricTWrite,RubricTFen=@RubricTFen,CheckUserT=@CheckUserT  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection3);
                                command3.Parameters.Add("@RubricTWrite", SqlDbType.Text).Value = str;
                                command3.Parameters.Add("@RubricTFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command3.Parameters.Add("@CheckUserT", SqlDbType.VarChar, 20).Value = str3;
                                command3.ExecuteNonQuery();
                                command3.Dispose();
                                connection3.Close();
                                connection3.Dispose();
                                continue;
                            Label_461A:
                                if (label2.Text.Trim() == strArray18[index].Trim())
                                {
                                    goto Label_464C;
                                }
                                index++;
                            Label_4640:
                                if (index < strArray18.Length)
                                {
                                    goto Label_461A;
                                }
                                goto Label_4650;
                            Label_464C:
                                num16 = index;
                            Label_4650:;
                                string[] strArray17 = label.Text.Trim().Split(new char[] { ',' });
                                int num20 = 0;
                                for (num21 = 0; num21 < strArray17.Length; num21++)
                                {
                                    if (strArray17[num21].Trim() != "")
                                    {
                                        num20++;
                                    }
                                }
                                if (num20 == 0)
                                {
                                    num20 = 1;
                                }
                                double num19 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num20);
                                double num17 = 0.0;
                                if (box.Text.Trim() == "")
                                {
                                    strArray15[num16] = "未填写";
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                else
                                {
                                    for (num18 = 0; num18 < strArray17.Length; num18++)
                                    {
                                        if ((strArray17[num18].Trim() != "") && (box.Text.Trim().IndexOf(strArray17[num18].Trim()) != -1))
                                        {
                                            num17 += num19;
                                        }
                                    }
                                    str9 = box.Text.Trim().Replace("|", "｜").Replace("'", "＇");
                                    str9 = base.Server.HtmlEncode(str9).Replace("\n", " <br/>").Replace(" ", " ");
                                    str9 = base.Server.HtmlDecode(str9);
                                    strArray15[num16] = str9;
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                strArray16[num16] = num17.ToString("0.00");
                                str = "";
                                str2 = "";
                                for (int num15 = 0; num15 < strArray15.Length; num15++)
                                {
                                    if (strArray15[num15].Trim() != "")
                                    {
                                        str = str + strArray15[num15].Trim() + "|";
                                        str2 = str2 + strArray16[num15].Trim() + "|";
                                    }
                                }
                                SqlConnection connection2 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection2.Open();
                                SqlCommand command2 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricANWrite=@RubricANWrite,RubricANFen=@RubricANFen,CheckUserAN=@CheckUserAN  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection2);
                                command2.Parameters.Add("@RubricANWrite", SqlDbType.Text).Value = str;
                                command2.Parameters.Add("@RubricANFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command2.Parameters.Add("@CheckUserAN", SqlDbType.VarChar, 20).Value = str3;
                                command2.ExecuteNonQuery();
                                command2.Dispose();
                                connection2.Close();
                                connection2.Dispose();
                                continue;
                            Label_4B40:
                                if (label2.Text.Trim() == strArray14[index].Trim())
                                {
                                    goto Label_4B72;
                                }
                                index++;
                            Label_4B66:
                                if (index < strArray14.Length)
                                {
                                    goto Label_4B40;
                                }
                                goto Label_4B76;
                            Label_4B72:
                                num14 = index;
                            Label_4B76:
                                if (this.txtSubPaper.Value.Trim() == "1")
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                    this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                if (this.txtSubPaper.Value.Trim() == "2")
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                strArray13[num14] = "0";
                                str = "";
                                str2 = "";
                                for (int num13 = 0; num13 < strArray12.Length; num13++)
                                {
                                    if (strArray12[num13].Trim() != "")
                                    {
                                        str = str + strArray12[num13].Trim() + "|";
                                        str2 = str2 + strArray13[num13].Trim() + "|";
                                    }
                                }
                                SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection.Open();
                                SqlCommand command = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricOWrite=@RubricOWrite,RubricOFen=@RubricOFen,CheckUserO=@CheckUserO  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection);
                                command.Parameters.Add("@RubricOWrite", SqlDbType.Text).Value = str;
                                command.Parameters.Add("@RubricOFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command.Parameters.Add("@CheckUserO", SqlDbType.VarChar, 20).Value = str3;
                                command.ExecuteNonQuery();
                                command.Dispose();
                                connection.Close();
                                connection.Dispose();
                                continue;
                            Label_4EB4:
                                if (label2.Text.Trim() == strArray11[index].Trim())
                                {
                                    goto Label_4EE6;
                                }
                                index++;
                            Label_4EDA:
                                if (index < strArray11.Length)
                                {
                                    goto Label_4EB4;
                                }
                                goto Label_4EEA;
                            Label_4EE6:
                                num10 = index;
                            Label_4EEA:
                                str8 = this.publicFun_0.GetValues("select ParmValue from SysParmInfo where ParmMemo='IsCheckJRubric'", "ParmValue").Trim();
                                if (!(str8.Trim() == "") ? !(str8.Trim() == "N") : false)
                                {
                                    str8 = "Z";
                                }
                                else if (str8.Trim() == "")
                                {
                                    str8 = "N";
                                }
                                if (box.Text.Trim() != "")
                                {
                                    strArray6[num10] = box.Text.Trim().Replace("|", "｜").Replace("'", "＇");
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                else
                                {
                                    strArray6[num10] = "未填写";
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                strArray7[num10] = " ";
                                str = "";
                                str2 = "";
                                if (box.Text.Trim() != "")
                                {
                                    int length = 0;
                                    double num12 = 0.0;
                                    double num11 = 0.0;
                                    string[] strArray10 = this.labFen.Text.Split(new char[] { '_' });
                                    string[] strArray8 = label.Text.Split(new char[] { '#' });
                                    string[] strArray9 = box.Text.Trim().Replace("|", "｜").Replace("'", "＇").Split(new char[] { '#' });
                                    if (strArray9.Length >= strArray8.Length)
                                    {
                                        length = strArray8.Length;
                                    }
                                    else
                                    {
                                        length = strArray9.Length;
                                    }
                                    if (strArray10[num10].Trim() == "")
                                    {
                                        num12 = 0.0;
                                    }
                                    else
                                    {
                                        num12 = Convert.ToDouble(strArray10[num10].Trim());
                                    }
                                    num11 = 0.0;
                                    for (int num8 = 0; num8 < length; num8++)
                                    {
                                        if (!(str8 == "N"))
                                        {
                                            if ((strArray8[num8].Trim() != "") && (strArray9[num8].Trim() == strArray8[num8].Trim()))
                                            {
                                                num11 += num12;
                                            }
                                        }
                                        else if (!((strArray8[num8].Trim().ToUpper() != "") ? !(strArray9[num8].ToUpper().Trim() == strArray8[num8].Trim().ToUpper()) : true))
                                        {
                                            num11 += num12;
                                        }
                                    }
                                    strArray7[num10] = num11.ToString("0.00");
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num11.ToString("0.00"))));
                                }
                                else
                                {
                                    strArray7[num10] = "0";
                                }
                                str = "";
                                str2 = "";
                                for (int num7 = 0; num7 < (strArray6.Length - 1); num7++)
                                {
                                    if (strArray6[num7].Trim() == "")
                                    {
                                        strArray6[num7] = "未填写";
                                    }
                                    str = str + strArray6[num7].Trim() + "|";
                                    str2 = str2 + strArray7[num7].Trim() + "|";
                                }
                                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set RubricJWrite='", str, "',RubricJFen='", str2, "',CheckUserJ='", str3, "'  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }));
                            }
                            string str7 = DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString();
                            TimeSpan span = (TimeSpan) (DateTime.Now - Convert.ToDateTime(this.ViewState["JoinExamStartTime"].ToString()));
                            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update ExamUser set IsSave='1',LastTime=LastTime-", span.TotalMinutes.ToString(), ",EndTime='", str7, "',LastDate='", DateTime.Now.ToShortDateString(), "' where UserCode='", this.httpCookie_0.Value.Trim(), "' and PaperID=", this.int_0 }));
                            this.ViewState["JoinExamStartTime"] = DateTime.Now.ToString();
                            if (this.txtHideComm.Value.Trim() == "EndExam")
                            {
                                switch (this.publicFun_0.GetValues(string.Concat(new object[] { "select Flag from ExamUser where ExamType='A' and UserCode='", this.httpCookie_0.Value, "' and PaperID=", this.int_0 }), "Flag"))
                                {
                                    case "C":
                                    case "D":
                                    case "E":
                                    case "Z":
                                        ScriptManager.RegisterStartupScript(this.UPPart, this.Page.GetType(), "BSuccTip", "alert('此试卷已交卷，您不能重复提交！');", true);
                                        return;
                                }
                                this.method_2("C");
                                if (!(this.labPaperFlag.Text.Trim() == "Y"))
                                {
                                    this.method_2("D");
                                }
                                else
                                {
                                    this.method_2("E");
                                    this.method_0();
                                }
                                string str4 = "";
                                string str5 = this.ViewState["ExamType"].ToString().Trim();
                                if (str5 != null)
                                {
                                    if (str5 == "A")
                                    {
                                        str4 = "../Persion/ExamHistoryList.aspx";
                                    }
                                    else if (!(str5 == "B"))
                                    {
                                        if (str5 == "C")
                                        {
                                            str4 = "TestExamList.aspx";
                                        }
                                    }
                                    else
                                    {
                                        str4 = "../Persion/StudyHistoryList.aspx";
                                    }
                                }
                                base.Response.Write("<script>top.opener.location.href='" + str4 + "';top.self.close();</script>");
                            }
                        }
                        catch
                        {
                            this.method_2("G");
                            base.Response.Write("<script>top.opener.location.href='../Persion/ExamHistoryList.aspx';top.self.close();</script>");
                        }
                    }
                    string[] strArray2 = this.ViewState["SumRubricListID"].ToString().Split(new char[] { ',' });
                    if (!(this.txtSubPaper.Value != "0"))
                    {
                        this.txtBSubmit.Value = "2";
                    }
                    else
                    {
                        this.txtRubricSortID.Value = Convert.ToString((int) (Convert.ToInt32(this.txtRubricSortID.Value.Trim()) + 1));
                    }
                    this.ViewState["NowRubricLocation"] = this.txtRubricSortID.Value;
                    if (Convert.ToInt32(this.ViewState["NowRubricLocation"].ToString()) >= strArray2.Length)
                    {
                        this.txtBSubmit.Value = "1";
                    }
                    else
                    {
                        this.method_1();
                    }
                }
                string[] strArray = this.ViewState["SumRubricListID"].ToString().Split(new char[] { ',' });
                this.labRubricListID.Text = "";
                for (int i = 1; i <= strArray.Length; i++)
                {
                    int num2 = i - 1;
                    if (this.txtErrorID.Value.IndexOf("," + num2.ToString() + ",") == -1)
                    {
                        if (this.txtWriteID.Value.IndexOf("," + num2.ToString() + ",") != -1)
                        {
                            this.labRubricListID.Text = string.Concat(new object[] { this.labRubricListID.Text, "<a href='#' onclick=javascript:SetRubricID('", num2, "')><font color=green>", i.ToString(), "</font></a>、" });
                        }
                        else
                        {
                            this.labRubricListID.Text = string.Concat(new object[] { this.labRubricListID.Text, "<a href='#' onclick=javascript:SetRubricID('", num2, "')><font color=blue>", i.ToString(), "</font></a>、" });
                        }
                    }
                    else
                    {
                        this.labRubricListID.Text = string.Concat(new object[] { this.labRubricListID.Text, "<a href='#' onclick=javascript:SetRubricID('", num2, "')><font color=red>", i.ToString(), "</font></a>、" });
                    }
                }
                if (this.labRubricListID.Text.Trim().Length > 1)
                {
                    this.labRubricListID.Text = this.labRubricListID.Text.Substring(0, this.labRubricListID.Text.Length - 1);
                }
            }
            else
            {
                base.Response.Write("<script language=javascript>top.location.href='../Index.htm';self.close();</script>");
            }
        }
    }
}

